package com.fesine.learn.design.pattern.creational.simplefactory;

/**
 * @description: 类描述
 * @author: fesine
 * @createTime:2019/2/17
 * @update:修改内容
 * @author: fesine
 * @updateTime:2019/2/17
 */
public class Test {
    public static void main(String[] args) {
        //Video video = new PythonVideo();
        //video.produce();
        VideoFactory videoFactory = new VideoFactory();
        //Video video = videoFactory.getVideo("java");
        Video video = videoFactory.getVideo(JavaVideo.class);
        if (video == null){
            return;
        }
        video.produce();
    }
}
